Skip to content

Fix Windows cmd wrapper argument quoting#351

Merged
Dimillian merged 1 commit intomainfrom
codex/github-mention-windows-codex-cli-fails-to-start-broken-co
Feb 7, 2026
Merged

Fix Windows cmd wrapper argument quoting#351
Dimillian merged 1 commit intomainfrom
codex/github-mention-windows-codex-cli-fails-to-start-broken-co

Conversation

@Dimillian
Copy link
Copy Markdown
Owner

Motivation

  • Windows .cmd/.bat invocations were being double-quoted when building the cmd.exe /C payload which caused the spawned process to be treated as a single invalid command, so the launcher must pass the payload as a raw argument to avoid extra quoting.

Description

  • Use CommandExt and pass the cmd.exe /C payload with raw_arg(...) instead of arg(...) so the inner quoted command is not re-quoted by the Rust process API.
  • Applied the fix in src-tauri/src/backend/app_server.rs for Codex app-server launches and in src-tauri/src/workspaces/commands.rs for the workspace open in command path when resolving .cmd/.bat targets.
  • Existing non-Windows code paths and the PATH environment construction remain unchanged.

Testing

  • Ran npm run lint which completed successfully.
  • Ran npm run typecheck (tsc --noEmit) which completed successfully.
  • Ran npm run test (Vitest) and all frontend tests passed (70 test files, 377 tests passed).
  • Ran cargo check in src-tauri but it failed due to a missing system dependency (glib-2.0) in the environment, not related to the change.

Codex Task

@Dimillian
Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Dimillian Dimillian merged commit 1239ff1 into main Feb 7, 2026
9 checks passed
gersmann pushed a commit to gersmann/codex-monitor-web that referenced this pull request Mar 10, 2026
zip700 pushed a commit to zip700/CodexMonitor that referenced this pull request Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant